package com.yunyi.dm.factory.factory;

/**
 * 测试类
 *
 * @author yunyi
 */
public class Client {
    public static void main(String[] args) {
        CoffeeStore coffeeStore = new CoffeeStore();
        coffeeStore.setCoffeeFactory(new AmericanCoffeeFactory());
        Coffee coffee = coffeeStore.getCoffee();
        System.out.println(coffee.getName());

    }
}
